#ifndef __THREAD_H__
#define __THREAD_H__

#include"sceneObject.h"

class Thread:public SceneObject{
	private:
		static Vertexf vertices[];
		static const unsigned int nVertices=2;
		static const float fixSpeed;

	public:
		typedef enum{UP=-1 ,DOWN=1} MotionVector;

	public:
        Thread(Rectangle rec,Rectangle recClamp);
		virtual ~Thread();
		virtual void draw();
        virtual void timeStep();

        void closeClamp();
        void openClamp();

        void moveClamp(MotionVector dir);

        static std::string name(){
        	return "thread";
        }
};


#endif //__THREAD_H__

